﻿using Microsoft.EntityFrameworkCore;
using Sowrk03_28.Repository.Interface;
using System.Linq.Expressions;
using RBAC.Repository;
using RBAC.Domain;

namespace Sowrk03_28.Repository.Impls
{
    public class UserRepository : Repository<UserInfo>, IUserRepository
    {
        public UserRepository(MyDbContext dbcontex) : base(dbcontex)
        {
        }

        public async Task<List<UserInfo>> AllAsync()
        {
            return await base.AllAsync();
        }

        public async Task<int> CreateAsync(UserInfo entity)
        {
            return await base.CreateAsync(entity);
        }

        public async Task<int> DeleteAsync(UserInfo entity)
        {
            return await base.DeleteAsync(entity);
        }

        public async Task<UserInfo> GetAsync(int id)
        {
            return await base.GetAsync(id);
        }

        public async Task<List<UserInfo>> GetValues(Expression<Func<UserInfo, bool>> expre)
        {
            return await base.GetValues(expre);
        }

        public async Task<int> UpdateAsync(UserInfo entity)
        {
            return await base.UpdateAsync(entity);
        }
    }
}
